//
//  CPDropDownView.h
//  CPDropdownView
//
//  Created by 美鑫科技 on 16/5/9.
//  Copyright © 2016年 MorpLCP. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, CPDropDirection) {
    CPDropDirectionDefault = 0,
    CPDropDirectionFromTop,
    CPDropDirectionFromRight,
    CPDropDirectionFromBottom,
    CPDropDirectionFromLeft,
};

@protocol CPDropDownViewDelegate <NSObject>

@end

@interface CPDropDownView : UIView

@property (nonatomic, assign) id<CPDropDownViewDelegate> delegate;

// 出现的方向
@property (nonatomic, assign) CPDropDirection direction;

// 反弹强度 范围 0 - 1
@property (nonatomic, assign) CGFloat magnitude;

@property (nonatomic, assign) NSTimeInterval duration;

- (instancetype)initWithFrame:(CGRect)frame ReferenceView:(UIView *)view;

- (void)showDropView;
- (void)showDropViewWithDropDirection:(CPDropDirection)direction;
- (void)dismissDropView;
@end
